function qsToJson(query) {
  let obj = {};
  let s1 = query.substring(1);
  let arr1 = s1.split("&");
  // console.log(arr1)
  arr1.forEach((value) => {
    let arr2 = value.split("=");
    obj[arr2[0]] = arr2[1];
  });
  return obj;
}
